from flask import Flask, request, render_template

app = Flask(__name__)


@app.route('/appp', methods=['GET', 'POST'])
def appp():
    # 加载数据
    data = {
        'indexValue': '测试用页'
    }
    # 渲染
    html = render_template('index.html', **data)
    return html


app.run('localhost', 8111)
